package es.gw2eventtracker.modelo;

import java.util.HashMap;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.eclipse.persistence.oxm.annotations.XmlVirtualAccessMethods;

@XmlRootElement
public class EventDetails {
	EventDetailsObj events;

	public EventDetailsObj getEvents() {
		return events;
	}

	public void setEvents(EventDetailsObj events) {
		this.events = events;
	}

	@XmlRootElement
	@XmlVirtualAccessMethods
	@XmlAccessorType(XmlAccessType.FIELD)
	class EventDetailsObj {
		@XmlTransient
		java.util.Map<String, Event> eventos = new HashMap<String, Event>();

		public void set(String idEvento, Event evento) {
			eventos.put(idEvento, evento);
		}

		public Event get(String idEvento) {
			return eventos.get(idEvento);
		}
	}

}
